package com.enjoy.generic;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.service.GenericException;
import com.alibaba.dubbo.rpc.service.GenericService;

/**
 * <p>TODO</p>
 *
 * @Author Ellison Pei
 * @Date 2021/7/22 16:20
 **/
@Service
public class GenericServiceImpl implements GenericService {

    public void eat(String param){
        System.out.println(param);
    }
    @Override
    public Object $invoke(String method, String[] parameterTypes, Object[] args) throws GenericException {
        System.out.println("========$invoke------" + method);
        return "========$invoke------" + method;
    }
}
